<?php
class Form_Supprimervip extends Zend_Form
{
	public function init(){
		$this->setMethod('post');
		$this->setName('vip');
		
//vip		
		$vipsupp = new Zend_Form_Element_Select('suppVip');
		$vipsupp ->setLabel("Vip à supprimer :")
				 ->addMultiOptions(array('0' =>'Selectionner le Vip'))
				 ->setValue('0')
				 ->setRequired(true);
		$this->addElement($vipsupp);
		
		$submitButton = new Zend_Form_Element_Submit('Valider');
		$this->addElement($submitButton); 
		
		$resetButton = new Zend_Form_Element_Reset('Annuler');
		$this->addElement($resetButton);
		
	}
	
		public function remplirVip($resu){
		foreach ($resu as $ligne){
			$this->suppVip->addMultiOption($ligne->VIP_NUMERO, $ligne->VIP_NOM);
			
		}
	}
}